package com.vae.auth.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.client.OkHttp3ClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;

/**
 * @author: 35238
 * 功能: 用户扫码登录点击确定之后，这里会向微信发送请求，拿到微信提供的用户信息
 * 时间: 2024-07-06 19:35
 */
@Configuration
public class HttpClientConfig {

    @Bean
    RestTemplate restTemplate(){
        RestTemplate restTemplate = new RestTemplate(new OkHttp3ClientHttpRequestFactory());
        return  restTemplate;
    }

}
